package com.student.mapper;

import com.student.model.Room;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface RoomMapper {
    //通过Id获取房间信息
    Room getInforById(Integer roomId);
    //添加房间信息
    public int insertRoom(Room room);
    //通过Id删除房间信息
    public int deleteInforById(Integer roomId);
    //获取所有房间信息
    List<Room> getAllRoom();
    //修改房间信息
    int putRoomInfo(Room room);
    //批量删除房间信息
    int deleteRoom(Integer roomIds);
    //通过房间Id查询学生信息
    List<Room> getRoomIncludeStudentInfoById(Integer roomIds);
}
